﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Muccu.JavaScript;

namespace MuccuServerTest.JavaScript
{
    [TestFixture]
    public class StringExtensionsTest
    {
        [Test]
        public void ToCamelCase_Simple()
        {
            var sut = "MyMethod";

            var actual = sut.ToCamelCase();

            Assert.AreEqual("myMethod", actual);
        }

        [Test]
        public void ToCamelCase_CapitalOneLetter()
        {
            var sut = "M";

            var actual = sut.ToCamelCase();

            Assert.AreEqual("M", actual);
        }

        [Test]
        public void ToCamelCase_LowerOneLetter()
        {
            var sut = "m";

            var actual = sut.ToCamelCase();

            Assert.AreEqual("m", actual);
        }
    }
}
